package com.abigdreamer.im.client.module.talk;

import com.abigdreamer.im.client.module.messageProcess.IMessageProcess;
import com.abigdreamer.im.client.module.vo.Cache;
import com.abigdreamer.im.message.BaseMessage;

public class ShockFrameMessageProcess implements IMessageProcess {

	public void processMessage(BaseMessage message) {
		final String destQQ = message.getSrcQQ();
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				Cache cache = Cache.getInstance();
				TalkWindow talkFrame = cache.getTalkFrame(destQQ);
				talkFrame.pack();
				FrameEarthquakeCenter dec = new FrameEarthquakeCenter(talkFrame);
				talkFrame.setVisible(true);
				dec.startShake();
			}
		});
	}

}
